let Service = require('node-windows').Service;
 
let svc = new Service({
  name: 'cheliang',    //服务名称
  description: '圖片下載', //描述
  script: './express.js', //nodejs项目要启动的文件路径,
  wait:'1',
  grow:'0.25',
  maxRestarts:'40'
});

svc.on('uninstall',function(){
  console.log('Uninstall complete.');
  console.log('The service exists: ',svc.exists);
});

svc.uninstall();
